/*
 * logger.h
 *
 *  Created on: Oct 24, 2011
 *      Author: shaohong
 */

#ifndef LOGGER_H_
#define LOGGER_H_

#include <stdbool.h>

/**
 * log the message to log file.
 * The log format is like this:
 * 	17:28:04.151 | HttpHelper | host: "www.shoutcast.com" is resolved to 1.2.3.4
 *
 * There're three columns in the log.
 * The first column is the time when this message was logged.
 * The second column is tells us which module generated the message.
 * And the third column is the detail log message
 */
void logDebug(const char * module, const char * msg);

/*log messages with format and variable argument list */
void logDebugVarg(const char * module, char * format, ...);

#endif /* LOGGER_H_ */
